<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title><s:property value='%{getText("emp_new_title")}' /></title>
		<link href="/SCMDB/style/SuperEdit.css" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<script type="text/javascript" src="/SCMDB/emp/preview.js"></script>
		<script type="text/javascript"
			src="/SCMDB/js/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="/SCMDB/js/jquery-1.4.2.js"></script>
	</head>
	<body>
		<div class="main" id="main">
			<s:form action="employeeAction!addEmp" method="post" theme="simple"
				enctype="multipart/form-data" onsubmit="return false;">
				<!-- 主体开始 -->
				<table border="1" cellpadding="1" cellspacing="1"
					class="tableModify">
					<tr>
						<th style="width: 263px">
							工程名称：
						</th>
						<td>
							<s:textfield name="entity.proName" title="工程名称" maxLength="50"
								 cssStyle="width:150px"/> <span style="color:red">*</span>
							<input type="hidden" value="must-input" />
						</td>
						<td rowspan="5" class="tdLeft">
							<div align="center">
								<img src="/SCMDB/images/noEmpPhoto.gif" name="photo" width="80"
									height="100" id="photo" />
							</div>
						</td>
					</tr>
					<tr>
						<th>
							工程编号：
						</th>
						<td>
							<s:textfield name="entity.proID" title="工程编号" maxLength="8" /> <span style="color:red">*</span>
							<input type="hidden" value="must-input" />
						</td>
					</tr>
					<tr>
						<th>
							人员编号：
						</th>
						<td colspan="3">
							<s:textfield name="entity.empWorkID" title="编号" maxLength="8" /> <span style="color:red">*</span>
							<input type="hidden" value="must-input;must-number" />
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("emp_new_kh")}' />
						</th>
						<td colspan="3">
							<s:textfield name="entity.empLabelID" title="卡号" maxLength="8" /> <span style="color:red">*</span>
							<input type="hidden" value="must-input;must-number" />
							<br />
						</td>
						<div id="tagsDiv"></div>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("emp_new_xm")}' />
						</th>
						<td colspan="3">
							<s:textfield maxLength="64" name="entity.empName"
								title="姓名" /> <span style="color:red">*</span>
							<input type="hidden" value="must-input" />
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("emp_new_shfz")}' />
						</th>
						<td>
							<s:textfield maxLength="64" name="entity.identityNo"
								title="身份证"  cssStyle="width:150px"/>
						</td>
						<td id="uploadTd" class="tdLeft" colspan="3">
							<s:file name="empPhoto" cssClass="inputFile" label="inputFile"
								onchange="previewImg(this)" />
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("emp_new_tel")}' />
						</th>
						<td colspan="3">
							<s:textfield maxLength="20" name="empPhone" title="电话" value="-" />
						</td>
					</tr>
					<tr>
						<th>
							分包单位：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" name="unitName" title="分包单位"
								value="-" cssStyle="width:190px"/> <span style="color:red">*</span>
							<input type="hidden" value="must-input" />
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("emp_new_sex")}' />
						</th>
						<td>
							<s:select list="#session.sexType" listKey="key" listValue="value"
								name="entity.empSex"></s:select>
						</td>
						<th>
							班组：
						</th>
						<td colspan="3">
							<s:select list="entity.listDepartment" name="entity.empDepID"
								listKey="id" listValue="deptName" headerKey="0"
								headerValue="--请选择--"></s:select>
						</td>
					</tr>
					<tr>
						<th>
							户籍地址：
						</th>
						<td>
							<s:textfield maxLength="100" name="empAddr" title="地址"
								cssClass="addr" value="-" />
						</td>
						<th>
							工种信息：
						</th>
						<td colspan="3">
							<s:select list="entity.listWorkType" name="entity.empWorkTypeID"
								listKey="id" listValue="name" headerKey="0"
								headerValue="--请选择--"></s:select>
						</td>
					</tr>
					<tr>
						<th>
							进场日期：
						</th>
						<td>
							<s:textfield maxLength="100" id="entryTime" name="entryTime"
								title="进场日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'entryTime\\\')}'})" />
						</td>
						<th>
							体检证明：
						</th>
						<td colspan="3">
							<s:select list="#session.yesNO" listKey="key" listValue="value"
								name="entity.spection"></s:select>
						</td>
					</tr>
					<tr>
						<th>
							合同办理：
						</th>
						<td>
							<s:select list="#session.yesNO" listKey="key" listValue="value"
								name="entity.contract"></s:select>
						</td>
						<th>
							办理日期：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" id="contractTime" name="contractTime"
								title="办理日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'contractTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>
							持证与否：
						</th>
						<td>
							<s:select list="#session.yesNO" listKey="key" listValue="value"
								name="entity.certificate"></s:select>
						</td>
						<th>
							操作证书：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" name="certificateName" title="操作证书" />
						</td>
					</tr>
					<tr>
						<td style="width: 288px">
							上海市城镇保险：
						</td>
						<td>
							<s:select list="#session.yesNO" listKey="key" listValue="value"
								name="entity.townSecure"></s:select>
						</td>
						<th>
							其他保险 ：
						</th>
						<td colspan="2">
							<s:select list="#session.yesNO" listKey="key" listValue="value"
								name="entity.otherSecure"></s:select>
						</td>
					</tr>
					<tr>
						<th>
							三级安全教育卡：
						</th>
						<td>
							<s:select list="#session.yesNO" listKey="key" listValue="value"
								name="entity.safeCard"></s:select>
						</td>
						<th>
							建卡日期 ：
						</th>
						<td colspan="3">
							
							<s:textfield maxLength="100" id="cardTime" name="cardTime"
								title="建卡日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'cardTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>
							安全生产上岗证：
						</th>
						<td>
							<s:select list="#session.yesNO" listKey="key" listValue="value"
								name="entity.safePosts"></s:select>
						</td>
						<th>
							发证日期 ：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" id="postsTime" name="postsTime"
								title="发证日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'postsTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>
							劳保用品发放：
						</th>
						<td>
							<s:select list="#session.yesNO" listKey="key" listValue="value"
								name="entity.track"></s:select>
							种类：
							<s:select list="entity.listDuty" name="entity.empDutyID"
								listKey="id" listValue="name" headerKey="0"
								headerValue="--请选择--"></s:select>
						</td>
						<th>
							发放日期 ：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" id="trackTime" name="trackTime"
								title="发放日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'trackTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>
							安全操作规程交底：
						</th>
						<td>
							<s:select list="#session.yesNO" listKey="key" listValue="value"
								name="entity.safeOption"></s:select>
							类别：
							<s:select list="entity.listTitle" name="entity.empTitleID"
								listKey="id" listValue="name" headerKey="0"
								headerValue="--请选择--"></s:select>
						</td>
						<th>
							交底日期 ：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" id="safeOptionTime" name="safeOptionTime"
								title="交底日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'safeOptionTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>
							"零违章"承若书签订：
						</th>
						<td>
							<s:select list="#session.yesNO" listKey="key" listValue="value"
								name="entity.orderBook"></s:select>
						</td>
						<th>
							签订日期 ：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" id="orderTime" name="orderTime"
								title="签订日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'orderTime\\\')}'})" />
						</td>
					</tr>
					<%--
					<tr>
						<th>
							限制区域：
						</th>
						<td colspan="5">
							<s:select id="areaType" list="entity.listRestrictAlarm"
								listKey="id" listValue="name" headerKey="0"
								headerValue="--请选择--"></s:select>
							<input type="button" name="addArea11" class="bAdd" value="授权"
								title="授权" onclick="getParent()" />
						</td>
					</tr>
					<tr>
						<th>
							授权区域：
						</th>
						<td  colspan="5">
							<div id="limitAreas"></div>
							<s:hidden name="entity.reID" id="limitAreaID" />
						</td>
					</tr>

					<tr>
						<th>
							<s:property value='%{getText("emp_new_tzry")}' />
						</th>
						<td  colspan="5">
							<s:select list="#{'0':'否','1':'是'}" name="entity.empType"
								onchange="addDisplay()"></s:select>
						</td>
					</tr>
					<tr id="hidTr1">
						<th>
							<s:property value='%{getText("emp_new_ljset")}' />
						</th>
						<td colspan="5">
							<s:property value='%{getText("emp_new_quyu")}' />
							<s:select name="areaList" list="entity.listArea" listKey="id"
								listValue="name"></s:select>
							<img src="/SCMDB/images/add.gif" class="delImg"
								onclick="addObj('ctDivP','ctP',1)" title="添加" />
							<div id="ctDivP">
							</div>
						</td>
					</tr>--%>
				</table>
				<!-- 主体结束 -->
			</s:form>
		</div>
	</body>
</html>

